<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title>.: cPanel - Testing :.</title>
	<?php $this->import()?>
</head>
<body>
	<?php $this->header()?><br/>
		<table width="100%"><tr>
			<td align="left"><b>Testing on [ <a href="?c=cpanel&a=cats"><i><?php echo $cat->name;?></i></a> ]</b></td>
		</tr></table>
		<hr/>
		<center>
			<table><tr>
				<td>
					Time spent: <?php echo $_SESSION[self::MINUTES] * sizeof($ques) - floor($_SESSION[self::TOTAL_MINUTES] / 60);?>/<?php echo $_SESSION[self::MINUTES] * sizeof($ques);?> minutes
				</td>
				<td style="padding-left: 30px; padding-right: 30px;">
					Correct answer: <?php echo sizeof($ques) - sizeof($list); ?>/<?php echo sizeof($ques);?>
				</td>
				<td>
					Not answer: <?php echo $notchosen;?>/<?php echo sizeof($ques);?>
				</td>
			</tr></table>
			<hr/>
			<?php foreach ($list as $item) { ?>
				<table border="0" width="99%"><tr>
					<td align="left">
						Question #<?php echo $item->order;?>: <?php echo $item->content;?>
					</td>
				</tr></table>
				<table border="0">
					<?php foreach ($item->answers as $ans) {?>
					<tr>
						<td>
							<input class="answer" type="checkbox" name="answers[]" value="<?php echo $ans->id;?>" disabled="disabled" 
								<?php if ($ans->isChosen) echo 'checked="checked"';?> />
						</td>
						<td><?php echo $ans->order;?>.</td>
						<td align="left" width="660">
							<?php if ($ans->isTrue) { ?>
								<b style="color: #39f;">
									<?php echo $ans->content;?>
								</b>
							<?php } else { ?>
								<?php echo $ans->content;?>
							<?php } ?>
						</td>
					</tr>
					<?php } ?>
				</table>
			<?php } ?>
			<br/>
		</center>
	<?php $this->footer()?>
</body>
</html>